//
//  ConstantHeader.h
//  PublishTest
//
//  Created by 刘华舟 on 15/4/13.
//  Copyright (c) 2015年 云图. All rights reserved.
//
#import "UIImageView+WebCache.h"
#import "UIButton+WebCache.h"
#import "UIDevice+Hardware.h"
#import "UIImage-Extensions.h"
#import "UIColor+Tool.h"
#import "BlockUI.h"
//#import "Tool.h"

#ifndef PublishTest_ConstantHeader_h
#define PublishTest_ConstantHeader_h


//-------------------------------------------------------
#pragma mark - custom NSLog
//-------------------------------------------------------
#ifdef DEBUG
#   define DLog(fmt, ...) {NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);}
#   define ELog(err) {if(err) DLog(@"%@", err)}
#else
#   define DLog(...)
#   define ELog(err)
#endif

//-------------------------------------------------------
#pragma mark - BlockTypedef
//-------------------------------------------------------

typedef void (^FunctonBlock)(void);
typedef void (^BlockWithObject)(id result);
typedef void (^BlockWithError)(NSError* error);
typedef id (^ObjectWithBlock)();

//-------------------------------------------------------
#pragma mark -  OtherKey
//-------------------------------------------------------
#define SimulatorHardWareName @"Simulator"

#pragma mark - 是否是4寸屏幕
#define kScreenHeight CGRectGetHeight([UIScreen mainScreen].applicationFrame) //获取屏幕高度 460 or 548
#define kScreenWidth CGRectGetWidth([UIScreen mainScreen].applicationFrame) //获取屏幕高度 460 or 548
#define kUIScreenRect [[UIScreen mainScreen] bounds]  //屏幕大小 320 * 460 or 320 548
#define kNewHeightSpacing kScreenHeight - 460.0f  //如果是iPhone5 值为88，则为0

#define FontSize_DefaultNavTitle 18//默认导航栏标题字体大小
#define FontSize_DefaultListTitle 15//默认列表数据标题字体大小
#define FontSize_DefaultListContent 13//默认列表内容字体大小
#define FontSize_DefaultListTip 11//默认列表提示字体大小

#define DefaultNavHeight 44
#define DefaultTabHeight 49
#define ErrorTipDelay 2.0
#define SuccessTipDelay 1.5
#define FadeDismissDelay 0.0
#define AlertTipDelay 2.0
#define HudTag_common 0

#pragma mark - fileName
//-------------------------------------------------------
#define CurrentAudioFile @"RecordedAudio"
#define DecodedWavFile @"decoding.wav"
#define RecordingCaf @"recording.caf"

//-------------------------------------------------------
#pragma mark - API num
//-------------------------------------------------------
#define DefaultPageSize 10
//-------------------------------------------------------
#pragma mark - sqlite file
//-------------------------------------------------------
#define SQL_DataBase @"MyDataBase.sqlite"



typedef enum {
    Gender_girl=0,
    Gender_boy=1,
    Gender_unkown=2,
}Gender;

typedef enum {
    WriteType_update,
    WriteType_insert,
}WriteType;//SQL写操作类型

//-------------------------------------------------------
#pragma mark - EnumTypedef
//-------------------------------------------------------

#pragma mark- 发帖类型
typedef enum {
    PublishType_createTopic,
    PublishType_replyTopic,
    PublishType_replyComment,
}PublishType;




//-------------------------------------------------------
#pragma mark - 接口字段
//-------------------------------------------------------
#define APIKEY_discuzids @"discuzids"
#define APIKEY_discuz_lists @"discuz_lists"
#define APIKEY_face_lists @"face_lists"
#define APIKEY_last_topic_content @"last_topic_content"
#define APIKEY_categories @"categories"
#define APIKEY_discuz_ad @"discuz_ad"
#define APIKEY_result @"result"
#define APIKEY_error @"error"
#define APIKEY_desc @"desc"
#define APIKEY_id @"id"
#define APIKEY_title @"title"
#define APIKEY_icon @"icon"
#define APIKEY_category @"category"
#define APIKEY_classid @"classid"
#define APIKEY_lastid @"lastid"
#define APIKEY_discuzs @"discuzs"
#define APIKEY_attensions @"attensions"
#define APIKEY_name @"name"
#define APIKEY_refemales @"refemales"
#define APIKEY_tie_id @"tie_id"
#define APIKEY_user_id @"user_id"
#define APIKEY_tie_title @"tie_title"
#define APIKEY_tie_date @"tie_date"
#define APIKEY_zan_counts @"zan_counts"
#define APIKEY_zan_num @"zan_num"
#define APIKEY_re_counts @"re_counts"
#define APIKEY_face @"face"
#define APIKEY_discuz_id @"discuz_id"
#define APIKEY_ties @"ties"
#define APIKEY_tie_content @"tie_content"
#define APIKEY_uid @"uid"
#define APIKEY_fuid @"fuid"
#define APIKEY_token @"token"
#define APIKEY_gp @"gp"
#define APIKEY_pp @"pp"
#define APIKEY_ret @"ret"
#define APIKEY_join_discuz @"join_discuz"
#define APIKEY_msg @"msg"
#define APIKEY_timestamp @"timestamp"
#define APIKEY_data @"data"
#define APIKEY_isfollow @"isfollow"
#define APIKEY_isfans @"isfans"
#define APIKEY_is_verify @"is_verify"
#define APIKEY_user_info @"user_info"
#define APIKEY_nickname @"nickname"
#define APIKEY_email @"email"
#define APIKEY_nation @"nation"
#define APIKEY_province @"province"
#define APIKEY_city @"city"
#define APIKEY_bangs @"bangs"
#define APIKEY_fansnum @"fansnum"
#define APIKEY_idolnum @"idolnum"
#define APIKEY_favorites @"favorites"
#define APIKEY_topics @"topics"
#define APIKEY_posts @"posts"
#define APIKEY_signature @"signature"
#define APIKEY_face200 @"face200"
#define APIKEY_srcface @"srcface"
#define APIKEY_isphoto @"isphoto"
#define APIKEY_photos @"photos"
#define APIKEY_lv @"lv"
#define APIKEY_lvicon @"lvicon"
#define APIKEY_comment_visible @"comment_visible"
#define APIKEY_lat @"lat"
#define APIKEY_lng @"lng"
#define APIKEY_photo_list @"photo_list"
#define APIKEY_forum_list @"forum_list"
#define APIKEY_bid @"bid"
#define APIKEY_checkin @"checkin"
#define APIKEY_level @"level"
#define APIKEY_discuz_icon @"discuz_icon"
#define APIKEY_unreadnum @"unreadnum"
#define APIKEY_url @"url"
#define APIKEY_tie_subject @"tie_subject"
#define APIKEY_ouser_id @"ouser_id"
#define APIKEY_re_content @"re_content"
#define APIKEY_retext @"retext"
#define APIKEY_dateline @"dateline"
#define APIKEY_state @"state"
#define APIKEY_uface @"uface"
#define APIKEY_comment @"comment"
#define APIKEY_topic @"topic"
#define APIKEY_content @"content"
#define APIKEY_location @"location"
#define APIKEY_quote @"quote"
#define APIKEY_comment_id @"comment_id"
#define APIKEY_imgfile @"imgfile"
#define APIKEY_imgwidth @"imgwidth"
#define APIKEY_imgheight @"imgheight"
#define APIKEY_picture @"picture"
#define APIKEY_page @"page"
#define APIKEY_perpage @"perpage"
#define APIKEY_pagesize @"ps"
#define APIKEY_page @"page"
#define APIKEY_p @"p"
#define APIKEY_mtype @"mtype"
#define APIKEY_total_msg @"total_msg"
#define APIKEY_linkid @"linkid"
#define APIKEY_msgid @"msgid"
#define APIKEY_mid @"mid"
#define APIKEY_topic_id @"topic_id"
#define APIKEY_pic @"pic"
#define APIKEY_forum_name @"forum_name"
#define APIKEY_replay_count @"replay_count"
#define APIKEY_reply_counts @"reply_counts"
#define APIKEY_floor @"floor"
#define APIKEY_reply @"reply"
#define APIKEY_action @"action"
#define APIKEY_append @"append"
#define APIKEY_msgtype @"msgtype"
#define APIKEY_all @"all"
#define APIKEY_pmid @"pmid"
#define APIKEY_password @"password"
#define APIKEY_confirmpassword @"confirmpassword"
#define APIKEY_old_password @"old_password"
#define APIKEY_new_password @"new_password"
#define APIKEY_lastclient @"lastclient"
#define APIKEY_version @"version"
#define APIKEY_vendor @"vendor"
#define APIKEY_osver @"osver"
#define APIKEY_device @"device"
#define APIKEY_market @"market"
#define APIKEY_isevil @"isevil"
#define APIKEY_username @"username"
#define APIKEY_picture_thumb @"picture_thumb"
#define APIKEY_width @"width"
#define APIKEY_height @"height"
#define APIKEY_gender @"gender"
#define APIKEY_signature @"signature"
#define APIKEY_srcface @"srcface"
#define APIKEY_face200 @"face200"
#define APIKEY_image @"image"
#define APIKEY_category_timestamp @"category_timestamp"
#define APIKEY_discuz_name @"discuz_name"
#define APIKEY_day_clicks @"day_clicks"
#define APIKEY_tie_counts @"tie_counts"
#define APIKEY_users_count @"users_count"
#define APIKEY_doyen @"doyen"
#define APIKEY_category_id @"category_id"
#define APIKEY_chain_name @"chain_name"
#define APIKEY_list_item @"list_item"
#define APIKEY_cat_id @"cat_id"
#define APIKEY_sub_cat_id @"sub_cat_id"
#define APIKEY_status @"status"
#define APIKEY_mac @"mac"
#define APIKEY_imei @"imei"
#define APIKEY_lng @"lng"
#define APIKEY_lat @"lat"
#define APIKEY_geolocaltion @"geolocaltion"
#define APIKEY_regclient @"regclient"
#define APIKEY_discuz_list @"discuz_list"
#define APIKEY_daren @"daren"
#define APIKEY_mark_timestamp @"mark_timestamp"
#define APIKEY_mood @"mood"
#define APIKEY_list_dateline @"list_dateline"
#define APIKEY_my_discuz @"my_discuz"
#define APIKEY_mydiscuz_id @"mydiscuz_id"
#define APIKEY_request_dateline @"request_dateline"
#define APIKEY_orderby @"orderby"
#define APIKEY_asc @"asc"
#define APIKEY_desc @"desc"
#define APIKEY_description @"description"
#define APIKEY_signature @"signature"
#define APIKEY_follows_num @"follows_num"
#define APIKEY_fans_num @"fans_num"
#define APIKEY_jdl_num @"jdl_num"
#define APIKEY_checkin_num @"checkin_num"
#define APIKEY_last_topic @"last_topic"
#define APIKEY_scores @"scores"
#define APIKEY_topic_list @"topic_list"
#define APIKEY_reply_num @"reply_num"
#define APIKEY_like_num @"like_num"
#define APIKEY_last_reply_time @"last_reply_time"
#define APIKEY_last_reply_content @"last_reply_content"
#define APIKEY_topic_num @"topic_num"
#define APIKEY_flag @"flag"
#define APIKEY_rank @"rank"
#define APIKEY_to_topic_id @"to_topic_id"
#define APIKEY_to_uid @"to_uid"
#define APIKEY_os @"os"
#define APIKEY_next @"next"
#define APIKEY_score @"score"
#define APIKEY_ad_dateline @"ad_dateline"
#define APIKEY_category_list @"category_list"
#define APIKEY_category_icon @"category_icon"
#define APIKEY_category_name @"category_name"
#define APIKEY_game_counts @"game_counts"
#define APIKEY_today_counts @"today_counts"
#define APIKEY_banner_ad @"banner_ad"
#define APIKEY_ad_name @"ad_name"
#define APIKEY_ad_content @"ad_content"
#define APIKEY_ad_type @"ad_type"
#define APIKEY_ad_location @"ad_location"
#define APIKEY_install_num @"install_num"
#define APIKEY_ad_pic @"ad_pic"
#define APIKEY_ad_updateline @"ad_updateline"
#define APIKEY_list_ad @"list_ad"
#define APIKEY_list @"list"
#define APIKEY_topic_title @"topic_title"
#define APIKEY_sort_id @"sort_id"
#define APIKEY_sort @"sort"
#define APIKEY_devicetime @"devicetime"
#define APIKEY_t @"t"
#define APIKEY_access_token @"access_token"
#define APIKEY_to_comment_id @"to_comment_id"
#define APIKEY_thumb @"thumb"
#define APIKEY_is_sub @"is_sub"
#define APIKEY_gbdateline @"gbdateline"
#define APIKEY_age @"age"
#define APIKEY_regtime @"regtime"
#define APIKEY_game_banner_dateline @"game_banner_dateline"
#define APIKEY_game_banner_config @"game_banner_config"
#define APIKEY_classify_id @"classify_id"
#define APIKEY_is_hot @"is_hot"
#define APIKEY_game_banner1_config @"game_banner1_config"
#define APIKEY_f_nickname @"f_nickname"
#define APIKEY_f_face @"f_face"
#define APIKEY_funreadnum @"funreadnum"
#define APIKEY_speaker @"speaker"
#define APIKEY_pmid_data @"pmid_data"
#define APIKEY_pmid_list @"pmid_list"
#define APIKEY_type @"type"
#define APIKEY_discuzid @"discuzid"
#define APIKEY_tid @"tid"
#define APIKEY_more @"more"
#define APIKEY_floorid @"floorid"
#define APIKEY_ver_code @"ver_code"
#define APIKEY_wsnew @"wsnew"
#define APIKEY_anonymous_token @"anonymous_token"
#define APIKEY_favorite_num @"favorite_num"
#define APIKEY_game_num @"game_num"
#define APIKEY_discuz_num @"discuz_num"
#define APIKEY_trace @"trace"
#define APIKEY_system_user @"system_user"
#define APIKEY_distance @"distance"
#define APIKEY_extras @"extras"
#define APIKEY_priscores @"priscores"
#define APIKEY_priseniors @"priseniors"
#define APIKEY_score_nums @"score_nums"
#define APIKEY_scores @"scores"
#define APIKEY_seniors @"seniors"
#define APIKEY_keyword @"keyword"
#define APIKEY_friends_msg @"friends_msg"
#define APIKEY_notify_msg @"notify_msg"
#define APIKEY_private_msg @"private_msg"
#define APIKEY_friends_news @"friends_news"
#define APIKEY_notify @"notify"
#define APIKEY_pmcontact @"pmcontact"
#define APIKEY_my_marktag_sort @"my_marktag_sort"

#define APIKEY_alias @"alias"
#define APIKEY_jpush_tags @"jpush_tags"
#define APIKEY_jpush_token @"jpush_token"
#define APIKEY_n_content @"n_content"
#define APIKEY_n_extras @"n_extras"
#define APIKEY_b @"b"
#define APIKEY_c @"c"
#define APIKEY_d @"d"
#define APIKEY_tp @"tp"
#define APIKEY_i @"i"
#define APIKEY_u @"u"
#define APIKEY_f @"f"
#define APIKEY_g @"g"
#define APIKEY_l @"l"
#define APIKEY_m @"m"
#define APIKEY_n @"n"
#define APIKEY_p @"p"
#define APIKEY_t @"t"
#define APIKEY_r @"r"
#define APIKEY_rd @"rd"

#define APIKEY_marktag @"marktag"
#define APIKEY_geo @"geo"
#define APIKEY_uids @"uids"
#define APIKEY_f_gender @"f_gender"
#define APIKEY_friends_dynamic_list @"friends_dynamic_list"
#define APIKEY_identity @"identity"
#define APIKEY_desc_pic @"desc_pic"
#define APIKEY_board_mood @"board_mood"
#define APIKEY_download_url @"download_url"
#define APIKEY_downloadnums @"downloadnums"
#define APIKEY_hot_id @"hot_id"
#define APIKEY_hot_tie @"hot_tie"
#define APIKEY_jinhua @"jinhua"
#define APIKEY_size @"size"
#define APIKEY_sectionSepaStr @"<p>"
#define APIKEY_discuz_ids @"discuz_ids"
#define APIKEY_pic @"pic"
#define APIKEY_intro @"intro"
#define APIKEY_ad_id @"ad_id"
#define APIKEY_text @"text"
#define APIKEY_topic_type @"topic_type"
#define APIKEY_read_num @"read_num"
#define APIKEY_ispic @"ispic"
#define APIKEY_platform @"platform"
#define APIKEY_lastlat @"lastlat"
#define APIKEY_lastlng @"lastlng"
#define APIKEY_union_num @"union_num"
#define APIKEY_aps @"aps"
#define APIKEY_alert @"alert"
#define APIKEY_only @"only"
#define APIKEY_label @"label"
#define APIKEY_labelid @"labelid"
#define APIKEY_front_id @"front_id"
#define APIKEY_limit @"limit"
#define APIKEY_ids @"ids"
#define APIKEY_openid @"openid"
#define APIKEY_head @"head"
#define APIKEY_Photo_num @"photo_num"
#define APIKEY_game_list @"game_list"
#define APIKEY_Topic_list @"topic_list"
#define APIKEY_belike_num @"belike_num"
#define APIKEY_havelike @"havelike"
#define APIKEY_game_info @"game_info"
#define APIKEY_room_list @"room_list"
#define APIKEY_sdateline @"sdateline"
#define APIKEY_edateline @"edateline"
#define APIKEY_current @"current"
#define APIKEY_current_level @"current_level"
#define APIKEY_maxuser @"maxuser"
#define APIKEY_deduct @"deduct"
#define APIKEY_user_list @"user_list"
#define APIKEY_roomid @"roomid"
#define APIKEY_total @"total"
#define APIKEY_top_score @"top_score"
#define APIKEY_room_info @"room_info"
#define APIKEY_places @"places"
#define APIKEY_trend @"trend"
#define APIKEY_banner_notice @"banner_notice"
#define APIKEY_myplace @"myplace"
#define APIKEY_date @"date"
#define APIKEY_myroom @"myroom"
#define APIKEY_skin_width @"skin_width"
#define APIKEY_skin_height @"skin_height"
#define APIKEY_skin @"skin"
#define APIKEY_today @"today"
#define APIKEY_roomname @"roomname"
#define APIKEY_topscore @"topscore"
#define APIKEY_total_user @"total_user"
#define APIKEY_discuz_info @"discuz_info"
#define APIKEY_lists @"lists"
#define APIKEY_topic_pic @"topic_pic"
#define APIKEY_topic_url @"topic_url"
#define APIKEY_prize @"prize"
#define APIKEY_jinbi_num @"jinbi_num"
#define APIKEY_prop @"prop"
#define APIKEY_prize_type @"prize_type"
#define APIKEY_hid @"hid"
#define APIKEY_picture_id @"picture_id"
#define APIKEY_daoju_key @"daoju_key"
#define APIKEY_cdkey @"cdkey"
#define APIKEY_myinfo @"myinfo"
#define APIKEY_couponType @"couponType"
#define APIKEY_vote @"vote"
#define APIKEY_allow_lable @"allow_lable"
#define APIKEY_level_room @"level_room"
#define APIKEY_topn @"topn"
#define APIKEY_astro @"astro"
#define APIKEY_marktag_sort @"marktag_sort"
#define APIKEY_my_marktag_sort @"my_marktag_sort"
#define APIKEY_qq_nickname @"qq_nickname"
#define APIKEY_audio @"audio"
#define APIKEY_audio_length @"audio_length"
#define APIKEY_is_audio @"is_audio"
#define APIKEY_cat_name @"cat_name"
#define APIKEY_sub_cat @"sub_cat"
#define APIKEY_tie @"tie"
#define APIKEY_reg_type @"reg_type"
#define APIKEY_discuz_mood @"discuz_mood"
#define APIKEY_startid @"startid"
#define APIKEY_jutt @"jutt"
#define APIKEY_bundleID @"bundleID"
#define APIKEY_tags_limit @"tags_limit"
#define APIKEY_getall @"getall"
#define APIKEY_club_id @"club_id"
#define APIKEY_grade @"grade"
#define APIKEY_ctime @"ctime"
#define APIKEY_logo @"logo"
#define APIKEY_memnum @"memnum"
#define APIKEY_txt @"txt"
#define APIKEY_fund @"fund"
#define APIKEY_bg @"bg"
#define APIKEY_bg_width @"bg_width"
#define APIKEY_bg_height @"bg_height"
#define APIKEY_sys @"sys"
#define APIKEY_maxnum @"maxnum"
#define APIKEY_del_ids @"del_ids"
#define APIKEY_is_top @"is_top"
#define APIKEY_top_cat @"top_cat"
#define APIKEY_discuz_admin @"discuz_admin"

#endif
